package com.xneure.database.sql.handler;

import com.xneure.utils.ObjectUtil;

public enum HandlerType{
	INSERT(InsertHandler.class),
	UPDATE(UpdateHandler.class),
	DELETE(DeleteHandler.class),
	QUERY(QueryHandler.class);
	private Class<? extends SqlHandler> handler;

	HandlerType(Class<? extends SqlHandler> cls){
		this.handler = cls;
	}

	public SqlHandler getHandler(){
		return ObjectUtil.newInstance(handler);
	}
}
